﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Configuration;

namespace MQBasic.Config
{
    public class MQConfig
    {
        public static string MqHost
        {
            get
            {
                return ConfigurationManager.AppSettings["MqHost"];
            }
        }

        public static int MqPort
        {
            get
            {
                return int.Parse(ConfigurationManager.AppSettings["MqPort"]);
            }
        }

        public static string MqUserName
        {
            get
            {
                return ConfigurationManager.AppSettings["MqUserName"];
            }
        }

        public static string MqPwd
        {
            get
            {
                return ConfigurationManager.AppSettings["MqPwd"];
            }
        }

        public static string QueueName
        {
            get
            {
                return ConfigurationManager.AppSettings["QueueName"];
            }
        }
    }
}
